package com.example.demo.pojo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum Season {

    SPRING(1, "春"), SUMMER(2, "夏"), AUTUMN(3, "秋"), WINTER(4, "冬");

    int code;

    String name;


    public static void main(String[] args) {
        System.out.println(Season.AUTUMN.toString());
        for (int i = 0; i < Season.values().length; i++) {
            System.out.println(Season.values()[i]);
        }
    }

}
